/**
 * @brief 主要类型的定义
 * @version 1.0
 * @date 2018-2-26
 * @author 宋炜
 */

#ifndef __DEFINES_HPP__
#define __DEFINES_HPP__

/*
 * 错误编号分离号定义
*/
#define   ERR_SERIAL        -1000
#define   ERR_TCP           -2000
#define   ERR_AT            -3000
#define   ERR_UDP           -4000
#define   ERR_MQTT          -5000
#define   ERR_HTTP          -6000
#define   ERR_FILTER        -7000
#define   ERR_VDTU          -8000
#define   ERR_RESOLVER      -9000
#define   ERR_RDUP          -9500

/*
 * 终端输出颜色定义。方便输出错误或者录数据的分辨。 
 */
#define TRED          "\033[31m"
#define TGREEN        "\033[32m"
#define TBLUE         "\033[34m"
#define TYELLOW       "\033[33m"
#define TNORMAL       "\033[0m"

#endif
